package com.lm.paymentweb.remote;

import com.lm.paymentweb.common.Result;
import com.lm.paymentweb.configuration.FeignMultipartSupportConfig;
import com.lm.paymentweb.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liu2dog
 */
@FeignClient(name = "payment-admin",configuration = FeignMultipartSupportConfig.class,fallback = UserServiceFallback.class)
public interface UserRemote {

    @PostMapping("/test/sendEmail")
    Result sendEmail(@RequestParam String email);

    @PostMapping("/test/testSeata")
    Result testSeata();

}
